package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.GraphInfo;
import com.atguigu.lease.model.enums.ItemType;
import com.atguigu.lease.web.admin.vo.graph.GraphVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiongkunYang
 * @description 针对表【graph_info(图片信息表)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.GraphInfo
 */
public interface GraphInfoMapper extends BaseMapper<GraphInfo> {

    /**
     * 根据所属对象类型和所属对象ID查询图片信息
     *
     * @param itemType 所属对象类型
     * @param itemId 所属对象ID
     * @return 图片信息列表
     */
    List<GraphVo> selectGraphVoListByItemTypeAndItemId(@Param("itemType") ItemType itemType,
                                                       @Param("itemId") Long itemId);
}




